<script>
import request from '@/utils/request'
import WrapTable from '@/components/WrapTable'
import template from './variables'

export default {
  name: 'historyActivityInstances',
  mixins: [template],
  components: {
    WrapTable
  },
  data() {
    return {
      url: '/v1/activiti/procinstance/findHistoryActivityInstances',
      className: 'historyActivityInstances',
      errorMessage: '查看活动信息失败！',
      columns: [
        {
          prop: 'processDefinitionId',
          label: '活动ID',
          sortable: true,
          'min-width': '155',
          'show-overflow-tooltip': true,
          'header-align': 'center'
        },
        {
          prop: 'activityName',
          label: '活动名称',
          sortable: true,
          'min-width': '140',
          'show-overflow-tooltip': true,
          'header-align': 'center'
        },
        {
          prop: 'activityType',
          label: '活动类型',
          sortable: true,
          'min-width': '150',
          'show-overflow-tooltip': true,
          'header-align': 'center'
        },
        {
          prop: 'startTime',
          label: '开始时间',
          sortable: true,
          width: '155',
          'header-align': 'center'
        },
        {
          prop: 'endTime',
          label: '结束时间',
          sortable: true,
          width: '155',
          'header-align': 'center'
        },
        {
          prop: 'durationInMillis',
          label: '时长（毫秒）',
          sortable: true,
          width: '150',
          'header-align': 'center'
        }
      ]
    }
  }
}
</script>

<style lang="scss">
.historyActivityInstances {
  box-sizing: border-box;
  padding: 10px 40px 0;
  .c-button-list {
    margin-top: 20px;
    justify-content: flex-end;
  }
}
</style>
